<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <?php $this->beginWidget('TopHeaderStylesWidget');?><?php $this->endWidget();?>
        <link href="<?php echo Yii::app()->request->baseUrl;?>/css/flatui-docs-pop.css" rel="stylesheet" />
    </head
    <body>
    <?php echo $content; ?>
    </body>
    <?php $this->beginWidget('FooterScriptWidget');?><?php $this->endWidget();?>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/ueditor/ueditor.all.js"></script>
    <script>
    $(function(){
        var editor = new UE.ui.Editor();
        editor.render("Blog_description");

        //文章保存
    //    $('#saveBlog').click(function(){
    //        //满足提交条件时同步内容并提交，此处editor为编辑器实例
    //        if(editor.hasContents()){ //此处以非空为例
    //            editor.sync();       //同步内容
    //            $('#blogForm').submit();   //提交Form
    //        }
    //        $('#modal').modal('hide');
    //    });

        //Custom Select
        $("select#Blog_type_id").selectpicker({
            style: 'btn-primary', 
            menuStyle: 'dropdown-inverse',
            float:'none'
        });
    });
    </script>
</html>
